import request from "@/utils/request";

// 查询微信账号列表
export function getWeChatList(data) {
  return request({
    url: "/wx/list",
    method: "get",
    params: data,
  });
}

// 新增微信账号
export function goAddWeChat(data) {
  return request({
    url: "/wx/add",
    method: "post",
    data,
  });
}

// 编辑微信账号
export function goUpdateWeChat(data) {
  return request({
    url: "/wx/update",
    method: "post",
    data,
  });
}

// 删除微信账号
export function goDeleteWeChat(data) {
    return request({
      url: "/wx/remove",
      method: "post",
      data,
    });
}

// 搜索微信账号
export function goSearchWeChat(data) {
    return request({
      url: "/wx/search",
      method: "get",
      params:data,
    });
}

// 获取微信账号详细
export function getWxInfo(data) {
    return request({
      url: "/wx/info",
      method: "get",
      params:data,
    });
}


// 删除微信账号
export function getBindPlayers(data) {
    return request({
      url: "/wx/relation/players",
      method: "get",
      params:data,
    });
}
